import 'package:flutter/material.dart';

enum StatusStyle { DARK_CONTENT, LIGHT_CONTENT }

class NavigationBarWidget extends StatelessWidget {
  final StatusStyle? statusStyle;
  final Color? color;
  final double? height;
  final Widget? child;
  const NavigationBarWidget(
      {super.key,
      this.statusStyle = StatusStyle.DARK_CONTENT,
      this.color = Colors.white,
      this.height = 46,
      required this.child});

  @override
  Widget build(BuildContext context) {
    _statusInit();
    var top = MediaQuery.of(context).padding.top;

    return Container(
      width: MediaQuery.of(context).size.width,
      height: top + height!,
      padding: EdgeInsets.only(top: top),
      decoration: BoxDecoration(color: color),
      child: child,
    );
  }

  void _statusInit() {
    // FlutterStatusbarcolor.setStatusBarColor(Colors.green.shade300);
    // FlutterStatusbarcolor.setNavigationBarColor(Colors.orange);
  }
}
